import java.applet.*;
import java.awt.*;

public class PressureDemoRun extends Applet {
	PressureDemoCanvas square;
	TextSlideP velField;  
	double minVal = -50.0, maxVal = 50;  

	public void init() {
		this.setLayout(new BorderLayout(15,15));
		Panel p = new Panel();
		p.setLayout(new GridLayout(2,1,0,4));
		velField = new TextSlideP(this,"Velocity:",minVal,maxVal);
		p.add(velField);
		add("South",p);
		square = new PressureDemoCanvas();
		this.add("Center",square);
		velField.setValue(-20.0);
		validate();
	}

	public void start() { 
		square.enable();
	}

	public void stop() { 
		square.disable();
	}

	public void changeParam(TextSlideP which) {
		if (which == velField) {
			square.setVel(velField.getValue());
		} 
	}

	public void paint(Graphics g) {
		;
	}
}
